"use strict";
// type 和 interface 的区别？？？
// type和interface的相同点：都是用来定义对象或函数的形状。
let user = {
    motto: "今日事今日毕",
    uage: 18,
};
console.log(user);
console.log(user.motto);
console.log(user.uage);
let user1 = {
    motto: "今日事今日毕",
    uage: 22,
    usex: true,
    class: [1, 2, 3, 4, 5],
    info: {
        address: "郑州",
        tel: 1234567890,
    },
};
console.log(user1);
console.log(user1.motto); //今日事今日毕
console.log(user1.class); //[1, 2, 3, 4, 5]
console.log(user1.info.address); // 郑州
let p1 = {
    pname: "100",
    a: 10,
    b: true,
    hobby: "写字",
};
console.log(p1.a); // 10
console.log(p1.hobby); //写字
